package com.shse.login.service.impl;

import com.shse.login.dao.UserDao;
import com.shse.login.meta.User;
import com.shse.login.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by shse on 3/13/2016.
 */
@Service
public class UserServiceImpl implements UserService{

    @Resource
    private UserDao userDao;

    @Override
    public User getUser(String userName, String userPassword) {
        return userDao.getUser(userName, userPassword);
    }

    @Override
    public User getUserById(Integer userId) {
        return userDao.getUserById(userId);
    }
}
